package net.jueb.gameServer;

import java.util.concurrent.atomic.AtomicInteger;

public class StaticScript extends AbstractScript{

	public StaticScript() {
		setScriptVersion(1);//设置脚本版本
	}
	
	/**
	 * 此变量只在当前实例有效
	 */
	private AtomicInteger ato=new AtomicInteger(0);
	
	@Override
	public void run() {
		log.debug("静态脚本执行(version="+getScriptVersion()+"),脚本变量ato="+ato.incrementAndGet()+",外部变量ato="+GameService.getInstance().StaticInt.incrementAndGet());
	}

	@Override
	public int getMessageCode() {
		return GameService.StaticScriptCode;
	}
}
